Skip to content

Implement scroll-to-bottom button in chat when scrolled up#554

Merged
param20h merged 3 commits into
param20h:devfrom
Kishalll:feature/issue-423
Jun 12, 2026
Merged

Implement scroll-to-bottom button in chat when scrolled up#554
param20h merged 3 commits into
param20h:devfrom
Kishalll:feature/issue-423

Conversation

@Kishalll

@Kishalll Kishalll commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

🔗 Related Issue

Closes #423

📝 What does this PR do?

Implements a floating scroll-to-bottom button in the chat interface.

• The button smoothly fades in using a ChevronDown icon when a user scrolls up past a 100px threshold.
• Clicking the button smoothly scrolls the user back to the newest messages.
• Refines the auto-scroll behavior so it only pulls the user down on new messages if they are already
near the bottom (within 150px), preventing disruptive jumps if they are reading past chat history.

🗂️ Type of Change

  • 🐛 Bug fix
  • ✨ New feature
  • 🔧 Refactor / code cleanup
  • 📝 Documentation update
  • 🎨 UI / styling change
  • ⚙️ CI / tooling / config change
  • 🧪 Tests

🧪 How was this tested?

  • Ran the backend locally ( uvicorn app.main:app --reload )
  • Ran the frontend locally ( npm run dev inside frontend/ )
  • Tested the affected API endpoints manually
  • Added / updated tests

⚠️ Anything to flag for reviewers?

N/A

✅ Self-Review Checklist

  • My branch is based on dev , not main
  • I have not added any secrets / API keys
  • I have not modified main branch or any HuggingFace deployment config
  • My code follows the existing style (no unnecessary formatting changes)
  • I have updated relevant docs / comments if needed

@Kishalll Kishalll requested a review from param20h as a code owner June 10, 2026 08:05
@Kishalll

Copy link
Copy Markdown
Contributor Author

@param20h pls review

param20h
param20h previously approved these changes Jun 11, 2026
@Kishalll

Copy link
Copy Markdown
Contributor Author

@param20h resolved conflicts pls review

@param20h param20h merged commit 051eae2 into param20h:dev Jun 12, 2026
6 checks passed
@github-actions github-actions Bot added gssoc GirlScript Summer of Code 2026 issue/PR gssoc:approved Approved for GSSoC base points (+50 pts) level:beginner +20 pts mentor:param20h Mentor for this PR type:frontend Frontend UI/UX labels Jun 12, 2026
@github-actions

Copy link
Copy Markdown

🎉 Congratulations on getting your Pull Request merged! 🎉

Thank you for contributing to PDF-Assistant-RAG as part of GSSoC '26! 🚀

Keep up the great work! ✨

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gssoc:approved Approved for GSSoC base points (+50 pts) gssoc GirlScript Summer of Code 2026 issue/PR level:beginner +20 pts mentor:param20h Mentor for this PR type:frontend Frontend UI/UX

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(ui): Implement scroll-to-bottom button in chat when scrolled up

2 participants